package com.tsu.mall.order.Controller;

import com.tsu.mall.common.entity.Member;
import com.tsu.mall.common.service.IMemberService;
import com.tsu.mall.common.util.RequestUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/myEva")
public class MyEvaController {
    @Autowired
    private IMemberService iMemberService;
    @GetMapping("/myEvaPage")
    public String myEvaPage(Model model){
        //查询当前登录用户信息
        Member currentMember=iMemberService.doSelectById(RequestUtil.getCurrent().getId());
        model.addAttribute("currentMember",currentMember);
        return "myEva";
    }
}
